package com.poisonh.unifiedauth.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.poisonh.unifiedauth.R;
import com.poisonh.unifiedauth.utils.ConstantUitls;

/**
 * 更换手机号
 * Created by PoisonH on 2016/6/28.
 */
public class ShowOldPhoneActivity extends BaseActivity implements View.OnClickListener
{

    private Button mBtnChangePhone;
    private TextView mTvOldPhone;

    @Override
    protected void loadContentView(Bundle savedInstanceState)
    {
        setContentView(R.layout.activity_showoldhone);
        initTitleView();
        initView();
    }

    @Override
    protected void initView()
    {
        setTitleTxt("手机号");
        mRightBtn.setVisibility(View.GONE);
        mLeftBtn.setOnClickListener(this);


        mBtnChangePhone = (Button) findViewById(R.id.changephone_sure);
        mTvOldPhone = (TextView) findViewById(R.id.tv_showoldphone);
        mTvOldPhone.setText(mStrUserPhone);
        mBtnChangePhone.setOnClickListener(this);

    }

    @Override
    public void onClick(View v)
    {
        switch (v.getId())
        {
            case R.id.ib_left_btn:
                finish();
                break;
            case R.id.changephone_sure:
                startActivity(new Intent(ShowOldPhoneActivity.this, InputNewPhoneActivity.class));
                finish();
                break;

        }
    }
}
